<div class="content-box">
    <form method="post" name="dulieu" action="" enctype="multipart/form-data" onsubmit="return validateFormCtdt()">
    	<div class="content-box-header">
    		<h3>Thêm chương trình đào tạo</h3>
    	</div>
        <div>
        	<table>
                <tr>
                    <td><label>Mã CTĐT: </label></td>
                    <td colspan="8">
                        <input type="text" name="ma_ctdt" id="ma_ctdt" value="{$ma_ctdt}" class="text-input"{$tt}/>
                        <label id="ctdt1"></label>
                    </td>
                </tr>
                <tr>
                    <td><label>Chọn CTĐT:</label></td>
                    <td>
                    <select name="madm_td" id="madm_td" class="td-200">
                        <option value="-1">Trình độ</option>
                        {foreach from=$ds_td item=td}
                        <option value="{$td->getmadm_td()}"{if $madm_td==$td->getmadm_td()}selected=""{/if}>{$td->getten_td()}</option>
                        {/foreach}
                    </select>
                    
                    </td>
                    <td>
                    <select name="madm_hdt" id="madm_hdt" class="td-200">
                        <option value="-1">Hệ đào tạo</option>
                        {foreach from=$ds_hdt item=hdt}
                        <option value="{$hdt->getmadm_hdt()}"{if $madm_hdt==$hdt->getmadm_hdt()}selected=""{/if}>{$hdt->getten_hedt()}</option>
                        {/foreach}
                    </select>
                    </td>
                    <td>
                    <select name="madm_nganh" id="madm_hdt" class="td-200">
                        <option value="-1">Ngành</option>
                        {foreach from=$ds_nganh item=nganh}
                        <option value="{$nganh->getmadm_nganh()}" {if $madm_nganh==$nganh->getmadm_nganh()}selected=""{/if}>{$nganh->getten_nganh()}</option>
                        {/foreach}
                    </select>
                    </td>
                    <td><label id="ctdt2"></label></td>
                </tr>
                <tr>
                    <td colspan="8"><input type="submit" name="btnThem" value="{$btnName}" class="button" /></td>
                </tr>
            </table>
        </div>
     </form>
     <form method="post" name="dulieu" action="" enctype="multipart/form-data">
        <div id="items">
            <table>
                <tr>
                    <td colspan="8">
                        <input type="text" class="text-input" name="txtkey" value="" />
                        <input type="submit" class="button" name="timkiem" value="Tìm Kiếm" />
                        <input type="submit" class="button" value="Xóa Chọn" name="xoachon"/>
                    </td>
                </tr>
                <tr>
                    <th><input name="checkall" id="checkall" value="" type="checkbox" onclick="SetAllCheckBoxes('dulieu','items',this.checked);" /></th>
                    <th>Mã CTĐT</th>
                    <th>Trình độ</th>
                    <th>Hệ đào tạo</th>
                    <th>Ngành</th>
                    <th class="td-300">Mô tả</th>
                    <th colspan="2">Chức năng</th>
                </tr>
                {foreach from=$ds_ctdt item=ctdt}
                <tr>
                    <td class="cangiua"><input type="checkbox" id="checkbox[]" name="checkbox[]" value="{$ctdt->getma_ctdt()}"/></td>
                    <td class="cangiua"><a href="nhom2-monctdt-ma_ctdt-{$ctdt->getma_ctdt()}" title="Thêm môn học cho CTĐT này!">{$ctdt->getma_ctdt()}</a></td>
                    <td>{$ctdt->getten_td()}</td>
                    <td>{$ctdt->getten_hedt()}</td>
                    <td>{$ctdt->getten_nganh() }</td>
                    <td width='100'></td>
                    <td><a href="nhom2-ctdt-ma-{$ctdt->getma_ctdt()}"><img src="../php/images/edit1.png" title="Sửa"/></a></td>
                    <td><a onclick="return confirm('Bạn có chắc chắn muốn xóa chương trình đào tạo này? {$ctdt->getma_ctdt()} ?')" href="nhom2-ctdt-xoama-{$ctdt->getma_ctdt()}"><img src="../php/images/del.png" title="Xóa"/></a></td>
                </tr>
                {/foreach}
                <tr>
                    <td colspan="8" class="canphai" style="text-align: right; padding: 10px;">Trang<span class="pagers"> {$p} {$pages}</span></td>
                </tr>
            </table>
        </div>
    </form>
</div>